import Cookies from 'js-cookie'

const TokenKey = 'hrsass-105-token'

export function getToken() {
  // 类比 localStorage.getItem(key)
  return Cookies.get(TokenKey)
}

export function setToken(token) {
// 类比 localStorage.setItem(key, value)
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  // 类比 localStorage.removeItem(key)
  return Cookies.remove(TokenKey)
}
